package com.zq.recruit.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 面试安排表
 * @TableName interview
 */
@TableName(value ="interview")
@Data
public class Interview implements Serializable {
    /**
     * 面试ID
     */
    @TableId(type = IdType.AUTO)
    private Integer interviewId;

    /**
     * 投递记录ID（关联delivery_record表）
     */
    private Integer deliveryId;

    /**
     * 面试时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date interviewTime;

    /**
     * 面试地点
     */
    private String location;

    /**
     * 面试官姓名
     */
    private String interviewer;

    /**
     * 面试备注
     */
    private String notes;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后更新时间
     */
    private Date updateTime;




//机构名称
    @TableField(exist = false)
    private String companyName;

//机构图片
    @TableField(exist = false)
    private String companyPath;

    //职位名称
    @TableField(exist = false)
    private String jobName;

//薪资范围
@TableField(exist = false)
    private String salaryRange;

    //简历路径
    @TableField(exist = false)
    private String filePath;


    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}